import java.util.Scanner;

public class BMICalculator {
    private final double weight;  // 体重
    private final double height;  // 身高
    private double bmi;     // 身体质量指数

    // 带两个参数的构造方法
    public BMICalculator(double weight, double height) {
        this.weight = weight;
        this.height = height;
    }

    // 计算BMI的方法
    public void calculate() {
        this.bmi = this.weight / (this.height * this.height);
    }

    // 判断是否超重的方法
    public boolean isOverWeight() {
        return this.bmi > 25;
    }

// 测试程序

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        double weight = scanner.nextDouble();
        double height = scanner.nextDouble();

        BMICalculator calculator = new BMICalculator(weight,height); // 创建一个BMICalculator实例，体重70kg，身高1.75m
        calculator.calculate(); // 计算BMI
        System.out.println("BMI值为：" + calculator.bmi); // 输出BMI值
        System.out.println("是否超重：" + calculator.isOverWeight()); // 输出是否超重
    }
}